package cn.iocoder.yudao.module.biz.controller.admin.risk.riskMethodDetail;

import cn.iocoder.yudao.module.biz.controller.admin.risk.riskMethodDetail.vo.*;
import cn.iocoder.yudao.module.biz.dal.dataobject.risk.riskMethodDetail.BizRiskMethodDetailDO;
import cn.iocoder.yudao.module.biz.service.risk.riskMethodDetail.BizRiskMethodDetailService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.security.access.prepost.PreAuthorize;
import io.swagger.annotations.*;

import javax.validation.constraints.*;
import javax.validation.*;
import javax.servlet.http.*;
import java.util.*;
import java.io.IOException;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.*;


@Api(tags = "管理后台 - 评级方法从")
@RestController
@RequestMapping("/biz/risk-method-detail")
@Validated
public class BizRiskMethodDetailController {

    @Resource
    private BizRiskMethodDetailService riskMethodDetailService;

    @DeleteMapping("/delete")
    @ApiOperation("删除评级方法从")
    @ApiImplicitParam(name = "id", value = "编号", required = true, dataTypeClass = String.class)
    @PreAuthorize("@ss.hasPermission('biz:risk-method-detail:delete')")
    public CommonResult<Boolean> deleteRiskMethodDetail(@RequestParam("id") String id) {
        riskMethodDetailService.deleteRiskMethodDetail(id);
        return success(true);
    }

}
